<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%
    String basePath1 = request.getScheme() + "://" + request.getServerName() + ":"
            + request.getServerPort()  + "/";
%>
<!--[if IE 6]>
<script src="resources/js/pngfix.js"></script>
<script>
  DD_belatedPNG.fix('.m-logtab1 a img');
  DD_belatedPNG.fix('.m-nav li a');
</script>
<![endif]-->
 <div id="g-hd" style="background-color: #CDC1B2;">
		<div class="container_24 m-head">
			<div class="grid_19">
				<br> <br> <br> <br> <br> <br> <br>
			</div>
			<div class="grid_5">
				<br> <br>
			<c:choose>
					<c:when test="${loginUser==null }">
						<div  class="m-logtab1">
							<a class="u-hd-link" id="login"
								href="<%=basePath1 %>zju/accounts/login?service=<%=basePath1 %>zjuwk/"><img src="resources/img/bus/login.png"></a>
								<%--href="<%=basePath1 %>zju/accounts/login?service"><img alt="" src="resources/img/bus/login.png"  style="width:60px;height:28px;"></a>--%>
							<script type="text/javascript">$("#login").attr("href","<%=basePath1 %>zju/accounts/login?service="+window.location.href);</script>
							<a class="u-hd-link" id="register" href="<%=basePath1%>zju/accounts/register"><img src="resources/img/bus/register.png"></a>
							<script type="text/javascript">$("#register").attr("href","<%=basePath1%>zju/accounts/register?service="+window.location.href);</script>
						</div>
					</c:when>
					<c:otherwise>
						<div class="m-logtab">
							<a class="u-hd-link"  href="<%=basePath1 %>zju/user/info" style="color:#B06E20">欢迎您:
								<cz:ceTextCutter text="${loginUser.name}" length="7"/>
							</a>
							<sec:authorize url="/manager/zjuwk/admin/common">
								<a class="u-hd-link" href="manager/zjuwk/admin/common">后台</a> 
						    </sec:authorize>
							<a class="u-hd-link" href="j_spring_security_logout">登出</a>
						</div>
					</c:otherwise>
				</c:choose>
			</div>
		</div>
		<div>
			<div class="m-nav" id="mainMenu">
					<ul>
						<li class="m-sy"><a class="first" href="#"></a></li>
						<li class="m-gk"><a href="about?type=1"></a></li>
						<li class="m-sm"><a href="book/principal"></a></li>
						<li class="m-zp"><a href="award"></a></li>
						<li class="m-xr"><a href="people"></a></li>
						<li class="m-zx"><a href="news"></a></li>
					</ul>
				</div>
				<!-- <div class="m-nav m-nav-1">
					<ul>
						<li class="norm first"><a  class="m-nav-link"  href="#">首页</a></li>
						<li class="norm"><a class="m-nav-link"  href="about?type=文库简介">文库概况</a></li>
						<li  class="norm">
						<div class="u-btns">
								<a  class="m-nav-link"  href="#">文库书目</a>
								<ul class="u-menu u-menu-min u-menu-c1">
									<li><a class="fist" href="book/principal">校长著作</a></li>
									<li><a class="fist" href="book/academician">院士著作</a></li>
									<li><a class="fist" href="book/famous">名师藏书</a></li>
									<li><a href="book/teacher">教师著作</a></li>
									<li><a href="book/alumnus">校友成果</a></li>
									<li><a href="book/artsfamous">文科名家</a></li>
								</ul>
							</div>
						</li>
						<li  class="norm"><a class="m-nav-link"  href="award">获奖作品</a></li>
						<li  class="norm"><a class="m-nav-link" href="#">求是学人</a></li>
						<li  class="norm">
							<div class="u-btns">
								<a  class="m-nav-link"  href="#">文库动态</a>
								<ul class="u-menu u-menu-min u-menu-c1">
                                    <li><a class="fist" href="newBooks">最新赠书</a></li>
                                    <li><a href="#">特色展览</a></li>
                                    <li><a href="recommend">精品推荐</a></li>
								</ul>
							</div>
						</li>
					</ul>
					<span class="corner corner-l"></span><span class="corner corner-r"></span>
				</div> -->
			</div>
	</div>